package cn.tedu.submarine;
import javax.swing.ImageIcon;

public class MineSubmarine extends SeaObject implements EnemyLife {

    public MineSubmarine(){
        super(63,19);
    }

   public void move() {
        x+=speed;//向右移动
    }
    public  ImageIcon getImage(){
        return Images.minesubm;}

    public Mine shootMine() {
        int x=this.x+this.width;
        int y=this.y-11;
        return new Mine(x,y);}

    public int getLife(){
        return 1;
    }
}




